package com.yao.longhan.presenter.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.yao.longhan.R;
import com.yao.longhan.model.StoryArticle;
import com.yao.longhan.net.download.DownloadInfo;
import com.yao.longhan.presenter.BaseAdapter;
import com.yao.longhan.presenter.BaseHolder;
import com.yao.longhan.presenter.holder.DownloadHolder;

/**
 * Created by Qiao on 2017/8/7.
 */

public class DownloadAdapter extends BaseAdapter<DownloadInfo> {
    public DownloadAdapter(Context context) {
        super(context);
    }

    @Override
    public BaseHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new DownloadHolder(View.inflate(context, R.layout.item_download, null));
    }
}
